#ifndef _TASK_QUEUE_SYNC_H_
#define _TASK_QUEUE_SYNC_H_

#include "TaskQueue.h"
#include "platform.h"

class TaskQueueSync :
	public TaskQueue
{
public:
	TaskQueueSync(){}
	virtual ~TaskQueueSync(){}

public:
	virtual Task * get_task();
	virtual bool set_task(Task *task);

protected:
	p_semaphore sem_empty_;
	p_mutex mutex_;
};
#endif
